﻿using OneP.InfinityScrollView;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Zjlist : InfinityBaseItem
{
    public Text name, Dairu, ShouShu,Sc;

    public override void Reload(InfinityScrollView _infinity, int _index)
    {
        if (SaveDate.GetInstance().Roomlist.RoomMsg[_index].Name != null)
        {
            name.text = SaveDate.GetInstance().Roomlist.RoomMsg[_index].Name;
        }
        if (SaveDate.GetInstance().Roomlist.RoomMsg[_index].ShouShu != null)
        {
            ShouShu.text = SaveDate.GetInstance().Roomlist.RoomMsg[_index].ShouShu;
        }
        else
        {
            ShouShu.text = "";
        }
        if (SaveDate.GetInstance().Roomlist.RoomMsg[_index].Dairu != null)
        {
            Dairu.text = SaveDate.GetInstance().Roomlist.RoomMsg[_index].Dairu;
        }
        if (SaveDate.GetInstance().Roomlist.RoomMsg[_index].Zj != null)
        {
            Sc.text = SaveDate.GetInstance().Roomlist.RoomMsg[_index].Zj;
        }
    }
}
